/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file FormSettingsSleepLength.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 24. 12. 2011
 */

#ifndef FORMSETTINGSSLEEPLENGTH_H_
#define FORMSETTINGSSLEEPLENGTH_H_

#include <FBase.h>
#include <FUi.h>

using namespace Osp::Base;
using namespace Osp::Ui::Controls;


class FormSettingsSleepLength :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FormSettingsSleepLength();
	virtual ~FormSettingsSleepLength();

// Constants
	static const int IDA_BUTTON_BACK 	= 200;
	static const int IDA_VALUE_5_00		= 201;
	static const int IDA_VALUE_5_30		= 202;
	static const int IDA_VALUE_6_00		= 203;
	static const int IDA_VALUE_6_30		= 204;
	static const int IDA_VALUE_7_00		= 205;
	static const int IDA_VALUE_7_30		= 206;
	static const int IDA_VALUE_8_00		= 207;
	static const int IDA_VALUE_8_30		= 208;
	static const int IDA_VALUE_9_00		= 209;
	static const int IDA_VALUE_9_30		= 210;
	static const int IDA_VALUE_10_00	= 211;
// Attributes
	ScrollPanel* pScrollPanelSleepLength;
	CheckButton* pValue5_00;
	CheckButton* pValue5_30;
	CheckButton* pValue6_00;
	CheckButton* pValue6_30;
	CheckButton* pValue7_00;
	CheckButton* pValue7_30;
	CheckButton* pValue8_00;
	CheckButton* pValue8_30;
	CheckButton* pValue9_00;
	CheckButton* pValue9_30;
	CheckButton* pValue10_00;
// Methods
public:
	bool Initialize(void);
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	void SetChooseValue();
	int GetFormId();
	void Update();
	void Redraw();
};

#endif /* FORMSETTINGSSLEEPLENGTH_H_ */
